#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    int n;
    cin >> n;
    bool ifFirst = true;
    while(n > 0)
    {
        int temp = n % 10;
        if (temp == 0)
        {
            if(!ifFirst)
              cout << 0;                
        }
        else
        {
            if(ifFirst)
                ifFirst = false;
            cout << n % 10;
        }
        n = n / 10;
    }
}